//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Abbath','The Deluxe at Old National Centre','Indianapolis, IN','Monday','5/20/2024','7:00 PM','6295861','Abbath-5-20-2024'],['Shordie Shordie','The Deluxe at Old National Centre','Indianapolis, IN','Wednesday','5/22/2024','8:00 PM','6270474','Shordie-Shordie-5-22-2024'],['Sapphic Factory: Queer Joy Party','The Deluxe at Old National Centre','Indianapolis, IN','Friday','6/7/2024','8:00 PM','6281038','Sapphic-Factory--Queer-Joy-Party-6-7-2024'],['MC Magic','The Deluxe at Old National Centre','Indianapolis, IN','Friday','6/14/2024','8:00 PM','6323385','MC-Magic-6-14-2024'],['BossMan Dlow','The Deluxe at Old National Centre','Indianapolis, IN','Thursday','6/20/2024','8:00 PM','6345140','BossMan-Dlow-6-20-2024'],['mxmtoon','The Deluxe at Old National Centre','Indianapolis, IN','Tuesday','7/2/2024','8:00 PM','6328794','mxmtoon-7-2-2024'],['Soja','The Deluxe at Old National Centre','Indianapolis, IN','Wednesday','7/31/2024','8:00 PM','6401780','Soja-7-31-2024'],['The Volunteers','The Deluxe at Old National Centre','Indianapolis, IN','Monday','8/5/2024','8:00 PM','6374728','The-Volunteers-8-5-2024'],['D'Aydrian Harding','The Deluxe at Old National Centre','Indianapolis, IN','Thursday','8/8/2024','8:00 PM','6390267','D-Aydrian-Harding-8-8-2024'],['Crumb','The Deluxe at Old National Centre','Indianapolis, IN','Wednesday','8/28/2024','8:00 PM','6404080','Crumb-8-28-2024'],['Loveless','The Deluxe at Old National Centre','Indianapolis, IN','Wednesday','9/25/2024','7:30 PM','6396290','Loveless-9-25-2024'],['La Santa Grifa & Dharius','The Deluxe at Old National Centre','Indianapolis, IN','Tuesday','10/8/2024','7:30 PM','6340681','La-Santa-Grifa---Dharius-10-8-2024'],['RAC & Hotel Garuda','The Deluxe at Old National Centre','Indianapolis, IN','Tuesday','6/17/2070','TBD','4433315','RAC---Hotel-Garuda-6-17-2070']],'Deluxe at Old National Centre','http://www.ticketnetwork.com/ticket/Deluxe-at-Old-National-Centre-events.aspx');